package main

import "fmt"

type A struct {
	Name string
	Age int
}

func (a *A)print(){
	a.Name="ssss"
	fmt.Println("A")
}
func main() {
	a:= A{Name:"aaa"}
	fmt.Println(a.Name)
	a.print()
	fmt.Println(a.Name)
	(*A).print(&a)
	a.Increase()
	fmt.Println(a.Age)
	a.Increase()
	fmt.Println(a.Age)

	var z TZ
	z.Increase(100)
	fmt.Println(z)
}

func (a *A) Increase(){
	a.Age += 100
}

type TZ int

func(tz *TZ) Increase(num int){
	*tz += TZ(num)
}
